package com.hbu.product.hbumallproduct.vo;

import com.hbu.product.hbumallproduct.entity.AttrEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

/**
 * @ProjectName: hbu-mall
 * @Package: com.hbu.product.hbumallproduct.vo
 * @ClassName: AttrVO
 * @Author: zxh
 * @Description:
 * @Date: 2022/11/22 16:38
 * @Version: 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class AttrVO {

    private Long attrId;

    private String attrName;

    private Integer searchType;

    private String icon;

    private String valueSelect;

    private Integer attrType;

    private Long enable;

    private Long catelogId;

    private Integer showDesc;

    private Long attrGroupId;

    private Integer valueType;

    public AttrVO(AttrEntity attrEntity){
        this.attrId = attrEntity.getAttrId();
        this.attrName = attrEntity.getAttrName();
        this.searchType = attrEntity.getSearchType();
        this.icon = attrEntity.getIcon();
        this.valueSelect = attrEntity.getValueSelect();
        this.attrType = attrEntity.getAttrType();
        this.enable = attrEntity.getEnable();
        this.catelogId = attrEntity.getCatelogId();
        this.showDesc = attrEntity.getShowDesc();
        this.valueType = attrEntity.getValueType();
    }
}
